#include <graphics.h>

int main()
{
	initgraph(720, 720);

	int x = 300;
	int y = 300;

	BeginBatchDraw();

	while (true)
	{
		ExMessage msg;
		while (peekmessage(&msg))
		{
			if (msg.message == WM_MOUSEMOVE)
			{
				x = msg.x;
				y = msg.y;
			}
		}
			
		cleardevice();
		solidcircle(x,y, 100);
		FlushBatchDraw();
	}
	EndBatchDraw();
	
	return 0;
}
